<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>{{$page_title}}</title>
	<link href="/static/css/main.css" rel="stylesheet" type="text/css"/>
        <link href="/static/css/main(1).css" rel="stylesheet" type="text/css"/>
        <link href="/static/css/chrome.css" rel="stylesheet" type="text/css"/>
	<script type="text/javascript" src="/static/javascript/jquery/jquery.min.js"> </script>
	
	{{block name=stylesheet}}{{/block}}
	
	
  </head>
  <body>
    <div id="header">
      <div class="top">
        <div class="login">
          {{if $is_active}}
            <span class="item nickname">Welcome, {{$username}}</span> |
            <span class="item"><a href="#">Sign out</a></span>
          {{else}}
            <span class="item"><a href="#">Sign in</a></span>
          {{/if}}
        </div>
        <div class="title"><img src="/static/images/appengine.png" alt="Chilik-wiki"/><a href="/wiki/MainPage/"><img src="/static/images/logo.png" alt="Google ccWiki"/></a></div>
      </div>
	  
      <div class="bottom">
		
        
		{{if $is_active}}
		
<div class="buttons">		
			<span class="item">&nbsp;<a href="/wikitest/MainPage/"><img src="/static/images/home.gif"/></a>&nbsp;&nbsp;			<input type="button" value="  New Page  " onclick="NewPage()"/></span>{% block buttons %}{% endblock %}
</div>		
		<div class="buttons2">		
			<form action="/wikitest/search/result/" method="post">		
			<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
			<img src="/static/images/searchButton.gif" />
			<input name="search" type="text" class="txt" />
			<input name="search-btn" type="submit" class="btn" value="   Search    " />
			</form>
		</div>
		
<div class="buttons3">				
			
			<img src="/static/images/searchButton.gif"/>
			<input id="q" type="text"/>
			<input id="searchajax" type="submit" value="  Search-Ajax  " onclick="Search()" />
		
			
		</div>
		
        <div style="clear: both"></div>
		
      </div>
	  {{/if}}
    </div>
		
		{{if $is_active}}
		<div id="catalog">
	
		<a href="/wikitest/MainPage/"> All</a> | 
		<a href="/wikitest/search/A/"> A </a> | 
		<a href="/wikitest/search/B/"> B </a> | 
		<a href="/wikitest/search/C/"> C </a> | 
		<a href="/wikitest/search/D/"> D </a> | 
		<a href="/wikitest/search/E/"> E </a> | 
		
		<a href="/wikitest/search/F/"> F </a> | 
		<a href="/wikitest/search/G/"> G </a> | 
		<a href="/wikitest/search/H/"> H </a> | 
		<a href="/wikitest/search/I/"> I </a> | 
		<a href="/wikitest/search/J/"> J </a> | 
		
		<a href="/wikitest/search/K/"> K </a> | 
		<a href="/wikitest/search/L/"> L </a> | 
		<a href="/wikitest/search/M/"> M </a> | 
		<a href="/wikitest/search/N/"> N </a> | 
		<a href="/wikitest/search/O/"> O </a> | 
		
		<a href="/wikitest/search/P/"> P </a> | 
		<a href="/wikitest/search/Q/"> Q </a> | 
		<a href="/wikitest/search/R/"> R </a> | 
		<a href="/wikitest/search/S/"> S </a> | 
		<a href="/wikitest/search/T/"> T </a> | 
		
		<a href="/wikitest/search/U/"> U </a> | 
		<a href="/wikitest/search/V/"> V </a> | 
		<a href="/wikitest/search/W/"> W </a> | 
		<a href="/wikitest/search/X/"> X </a> |  
		<a href="/wikitest/search/Y/"> Y </a> | 
		<a href="/wikitest/search/Z/"> Z </a> | 
	
	
			</div>
		
		
		<script type="text/javascript">
			function Search(){
				q = $('#q').val();
				$('#body').html('&nbsp;').load('/xsearch/?q=' + q);
				
			};
			
			$(document).ajaxStart(function(){
				$('#spinner').show();
				$('#spinner').html('<div align="center"><img src="/static/images/spinner.gif"/><br>searching...</div>');
			});
			
			$(document).ajaxStop(function(){
				$('#spinner').hide();
			});
			
		</script>
		
		{{/if}}
		
		<div id="spinner"></div>
		<div id="body">
		 	
			{{block name=body}}{{/block}}
		</div>
		<div id="footer">
		<img src="/static/images/appengine.gif" alt="Google ccWiki"/>
		</div>
		
		{{block name=javascript}}
			<script type="text/javascript">	
			    function NewPage() 
			    {
				var pageName = window.prompt("Masukkan judul halaman yang baru dari Chilik-wiki Documentation");
				
				if (pageName) 
				{
					location.href = "/wikitest/" + pageName + "/";
				}
			    };
	
		    	</script>
		{{/block}}
  </body>
</html>
